Skip to content

Conversation

@tobyhede
Copy link
Contributor

The identity closure |t| t in map_or_else is unnecessary. Using unwrap_or_else is more idiomatic when the Some value doesn't need transformation.

…sure

The identity closure |t| t in map_or_else is unnecessary.
Using unwrap_or_else is more idiomatic when the Some value
doesn't need transformation.
@tobyhede tobyhede merged commit b6a7fb5 into main Dec 14, 2025
5 checks passed
@tobyhede tobyhede deleted the rust-1.92 branch December 14, 2025 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants